package com.qzsoft.system.modules.sysstation.entity;

import java.math.BigDecimal;
import java.util.List;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * @ClassName SysStationAsphaltMaterialEntity
 * @Description 沥青拌合楼物料设置
 * @author linhuawei
 * @since 2021-11-26
 */
@Data
@TableName("n_sys_station_asphalt_material")
public class SysStationAsphaltMaterialEntity {

    /**
     * 主键（拌合楼主键）
     */
    @NotBlank(message = "拌合楼信息不可为空")
    private String id;

    /**
     * 矿粉价格
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal powderPrice;

    /**
     * 沥青价格
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal asphaltPrice;
    
    /**
     * 配置详情
     */
    @TableField(exist = false)
    @NotEmpty(message = "骨料信息不可为空")
    private List<SysStationAsphaltMaterialDetailsEntity> details;

}
